#include <iostream>
#include "Array.hpp"

using namespace std;
using namespace cs540;

int main(){

	size_t adims[2] = {2, 3};
	Array<2,int> a(adims);
	a[1][2] = 10;
	//a[0][1] = 9999910;
	//a.print();
	cout << a[1][2] << endl;
	//Array<2,int> a1(a);	
	
	size_t cdims[2] = {2, 3};
	Array<2,double> c(cdims);
	c[1][2] = 300;
	c[0][1] = 99;
	//a.print();
	Array<2,double> c1(a);
	cout << "New c2 \n";

	//double i = c[1][2];
	//const Array<2,double> &c2(c1);

	//c2[1][2] = 4;
	//c1 = c;
	
	

	size_t dims[] = {1};
	Array<1, int> ai(dims);
	int ii = 2;
	ai[0] = ii;
	
	int iii = ai[0];
	cout << iii;
	

	

	size_t bdims[4] = {2, 3, 4, 5};
	Array<4,double> b(bdims);
	b[1][2][3][4] = 11110;
	Array<4,double> b1(b);

	double i = b[1][2][3][4];

	cout << " test : " << b[1][2][3][4] << endl;
	cout << "hahahhaha : " << i << endl << endl;
	size_t ddims[4] = {2, 3, 4, 5};
	Array<4,int> d(ddims);
	//d[1][2][3][4] = 11110;
	Array<4,int> d1(b);
	
	//const Array<4,int> &a11(d1);;
	
	//a11[1][2][3][4] = 100;
	
}
